package com.hzy.admin.repository.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hzy.admin.repository.entity.system.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author hzy
 * @since 2020-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Member extends BaseModel {

    private static final long serialVersionUID = 1L;

    private String num;

    private String name;

    private String phone;

    private String sex;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;

    private String photo;

    @TableField("userId")
    private String userId;

    private String introduce;

    @TableField("filePath")
    private String filePath;

}
